﻿using Assessment.BLL;
using Assessment.Model;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Index_Gauge_SelectType : BasePage_Index
{
    #region 属性
    public string MedicalRecordId
    {
        get { return Request.QueryString["MedicalRecordId"] == "" ? "" : Request.QueryString["MedicalRecordId"]; }
    }


    #endregion

    T_GaugeTypeBLL bll = new T_GaugeTypeBLL();
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            base.SetBtnGotoBackUrl("/Index/MedicalRecord/MedicalRecordEdit.aspx?Action=Detail&Id=" + MedicalRecordId);
            BindListData();
        }
    }

    private void BindListData()
    {
        List<T_GaugeType> list = bll.GetModelList("Valid=1");
        rpt_List.DataSource = list;
        rpt_List.DataBind();
    }
}